package com.wu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wu.pojo.UserLevel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: 吴磊
 * @program: blog
 * @create: 2021-05-06 22:10
 */
@Mapper
public interface UserLevelMapper extends BaseMapper<UserLevel> {
    /**
     * 通过
     *
     * @param uerId
     * @return
     */
    String getLevelByUserId(@Param("userId") String uerId);


    /**
     * 通过用户Id获取
     *
     * @param idList
     * @return
     */
    List<UserLevel> getLevelBeanByUserId(List<String> idList);

    /**
     * 插入
     *
     * @param userId
     * @return
     */
    Integer insert(@Param("userId") String userId);

    /**
     * 更新
     *
     * @param userId
     * @param userLevel
     * @return
     */
    Integer update(@Param("userId") String userId, @Param("userLevel") String userLevel);

    /**
     * 删除
     *
     * @param userId
     * @return
     */
    Integer delete(@Param("userId") String userId);
}
